{% if not environment.web %}
{% extends 'index.html' %}
{% endif %}
<script type="text/javascript">



$("a#chiudilink").click(function(){
    $("div#searchBox").show();
    $("div#filterbox").show();
    $("div#preview").show();
    $("div#nav").show();
    $("div#chiudi").hide()
    $("div#daoaddedit").hide();
    $('div#preview').empty()

    });


</script>
{% block body %}
<div style="width:800px;">
    <div id="chiudi" ><a href="#", id="chiudilink">
    <img src="/templates/img/chiudi24x24.png" alt="chiudi " title="chiudi"/>chiudi
    </a></div>

        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="report-header" colspan="4"><h3>Cliente: <strong>{{dao.ragione_sociale}}</strong></h3></td>
            </tr>
            <tr><td colspan="3" class="table-header">Dati anagrafici</td></tr>
            <tr>
        <td width="140px" class="odd-detail"> Codice </td>
                <td class="odd-detail"><strong>{{dao.codice}}</strong></td>
            </tr>
            <tr>
                <td class="even-detail">Ragione sociale</td>
                <td class="even-detail"><strong>{{dao.ragione_sociale|nonone}}</strong></td>
            </tr>
            <tr>
                <td class="odd-detail">Cognome</td>
                <td class="odd-detail"><strong>{{dao.cognome|nonone}}</strong></td>
            </tr>
            <tr>
                <td class="even-detail">Nome</td>
                <td class="even-detail"><strong>{{dao.nome|nonone}}</strong></td>
            </tr>
            <tr>
                <td class="odd-detail">Codice fiscale</td>
                <td class="odd-detail"><strong>{{dao.codice_fiscale|nonone}}</strong></td>
            </tr>
            <tr>
                <td class="even-detail">Partita IVA</td>
                <td class="even-detail"><strong>{{dao.partita_iva|nonone}}</strong></td>
            </tr>
        </table>

<table><tr><td width="50%">


</td>
<table cellpadding="0" cellspacing="0" border="0">
        <tr><td colspan="2" class="table-header">Sede legale</td></tr>
        <tr>
            <td width="140px" class="odd-detail">Indirizzo</td>
            <td class="odd-detail"><strong>{{dao.sede_legale_indirizzo|nonone}}</strong></td>
        </tr>
        <tr>
            <td class="even-detail">Località</td>
            <td class="even-detail"><strong>{{dao.sede_legale_localita|nonone}}</strong></td>
        </tr>
        <tr>
            <td class="odd-detail">Provincia</td>
            <td class="odd-detail"><strong>{{dao.sede_legale_provincia|nonone}}</strong></td>
        </tr>
        <tr>
            <td class="even-detail">CAP</td>
            <td class="even-detail"><strong>{{dao.sede_legale_cap|nonone}}</strong></td>
        </tr>
    </table>
    </tr>
</table>
<table><tr>
{% for a in utils.getRecapitiCliente(dao.id) %}

<td><b>{{a.tipo_recapito|nonone}} : </b>{{ a.recapito|nonone}}</td>

{% endfor %}</tr>
</table>
{% if pageData['subdomain'] == "giustopeso" %}
    <a class="infopeso" href="#" dao="cliente" id="{{dao.id}}">
        <img src="/templates/img/gp_75.png" alt="infopeso" title="infopeso" width="30"/></a>

    <a class="ordine_da_cliente" href="#" dao="cliente" id_cliente="{{dao.id}}">
        <img src="/templates/img/documento24x24.png" alt="ordine_da_cliente" title="ordine" width="30"/></a>
    <a class="metodo" href="#" dao="cliente" id_cliente="{{dao.id}}">
        <img src="/templates/img/modello_listino24.png" alt="metodo" title="metodo" width="30"/></a>
                <a class="edit" href="#" dao="cliente" id="{{dao.id}}">
        <img src="/templates/img/modifica.png" alt="modifica" title="modifica"/></a>
        {% endif %}
        </div>
{% endblock %}
